#pragma once

#define ELRS4_DATA_DL_SHIFT 1
#define ELRS4_DATA_DL_BYTES_PER_CALL 5
#define ELRS4_DATA_DL_MAX_PACKAGES (255 >> ELRS4_DATA_DL_SHIFT)
#define ELRS8_DATA_DL_BYTES_PER_CALL 10 // some of this is consumed by LinkStats buuuut....
#define ELRS8_DATA_DL_SHIFT 3
#define ELRS8_DATA_DL_MAX_PACKAGES (255 >> ELRS8_DATA_DL_SHIFT)

#define ELRS4_DATA_UL_BYTES_PER_CALL 5
#define ELRS8_DATA_UL_BYTES_PER_CALL 10
#define ELRS_DATA_UL_BUFFER 65
#define ELRS_MSP_MAX_PACKAGES ((ELRS_DATA_UL_BUFFER / ELRS4_DATA_UL_BYTES_PER_CALL)+1)

#define AP_MAX_BUF_LEN  64
